<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>

<button id="b01">加载</button>
<pre id="myDiv"></pre>
<script>
$(document).ready(function(){
$("#b01").click(function(){
htmlobj=$.ajax({url:"Log.txt",async:false});
$("#myDiv").html(htmlobj.responseText);
});
});
</script>